package com.platform.admin.contant;

/**
 * @author: yuanlai
 * @since 2020/11/18
 */
public interface RedisKeyConstant {

    String USER_TOKEN_KEY = "bw:user:token:";

    String ORDER_DEVICE_LOCK = "bw:order:deviceLock:";

    /**
     * 初始化电子看板数据锁前缀
     **/
    String ORDER_INIT_LOCK = "bw:order:lock:initLock:%s";

    /**
     * 待排产状态被机器争抢的锁 + mainId（存在定时任务和多机长【设备】同时争抢这一个订单的节点）
     **/
    String ORDER_SCHEDULED_LOCK = "bw:order:lock:scheduledLock:";

    /**
     * 手机短信验证码
     */
    String MOBILE_NOTE = "bw:mobile:note:";

    /**
     * 短信频繁发送
     */
    String MOBILE_FREQUENTLY = "bw:mobile:frequently:";

    String LOSS_REASON_KEY = "bw:record:loss:reason";

    /**
     * 转换生产状态 LOCK
     **/
    String SWITCH_PRODUCT_STATUS_LOCK = "bw:order:lock:switchStatus:{}";

}
